package cn.neusoft.pojo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OrderDetail {

    private Integer detailId; //主键
    private Integer orderId; //关联的订单编号
    private Integer foodId; //关联的餐品编号
    private Integer quantity;

    public OrderDetail(Integer detailId, Integer orderId, Integer foodId, Integer quantity) {
        this.detailId = detailId;
        this.orderId = orderId;
        this.foodId = foodId;
        this.quantity = quantity;
    }

    private Food food;
}
